//
//  MBProgressHUD+Bill.h
//  bill
//
//  Created by Demon on 16/1/21.
//  Copyright © 2017年 Demon. All rights reserved.
//

#import <MBProgressHUD/MBProgressHUD.h>

@interface MBProgressHUD (Bill)
/**
 *  快速显示一个成功的提示，一秒以后再消失,然后在哪个view上显示
 *
 *  @param success success
 *  @param view view
 */
+ (void)showSuccess:(NSString *)success toView:(UIView *)view;
/**
 *  快速显示一个错误的提示，一秒以后再消失，然后在哪个view上显示
 *
 *  @param error 参数
 *  @param view view
 */
+ (void)showError:(NSString *)error toView:(UIView *)view;
/**
 *  在哪个view显示一些信息
 *
 *  @param message message
 *  @param  view view
 *
 *  @return view
 */
+ (MBProgressHUD *)showMessage:(NSString *)message toView:(UIView *)view;
/**
 *  显示菊花
 *
 *  @param view view
 *
 *  @return id
 */
+ (MBProgressHUD *)showIndeterminate:(UIView *)view;
/**
 *  显示菊花文字
 *
 *  @param view view
 *  @param text text
 *
 *  @return hub
 */
+ (MBProgressHUD *)showIndeterminateAndText:(UIView *)view text:(NSString *)text;
/**
 *  获取成功展示的语句
 *
 *  @param success text
 */
+ (void)showSuccess:(NSString *)success;
/**
 *  获取失败展示的语句
 *
 *  @param error  text
 */
+ (void)showError:(NSString *)error;
/**
 *  直接展示想要的语句
 *
 *  @param message text
 *
 *  @return id
 */
+ (MBProgressHUD *)showMessage:(NSString *)message;
/**
 *  隐藏HUD
 *
 *  @param view view
 */
+ (void)hideHUDForView:(UIView *)view;

+ (void)hideHUD;

@end
